﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrador.Master" AutoEventWireup="true" CodeBehind="UI_Block.aspx.cs" Inherits="Espam.Idiomas.Decimo.Tesis.Web.UI_Block" Async="true" EnableEventValidation="false" EnableViewStateMac="false" ViewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contenido" runat="server">
    <script type="text/javascript">
        window.onload = function () {
            var seconds = 3;
            setTimeout(function () {
                document.getElementById("lblvalida").style.display = "none";
            }, seconds * 1000);
        };
    </script>
    <script type="text/javascript">
        function openModal() {
            $('#flexModal').modal('show');
        }
    </script>
    <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </cc1:ToolkitScriptManager>
    <div id="page-wrapper">

        <div class="page-content">

            <!-- begin PAGE TITLE AREA -->
            <!-- Use this section for each page's title and breadcrumb layout. In this example a date range picker is included within the breadcrumb. -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="page-title">
                        <h1>Bloqueos
                                <small>Registrar Bloqueos</small>
                        </h1>
                        <ol class="breadcrumb">
                            <li class="active">
                                <asp:Label ID="lblvalida" runat="server" Text="" Visible="False" ClientIDMode="Static"></asp:Label></li>
                            <li class="pull-right">
                                <div id="reportrange" class="btn btn-green btn-square date-picker">
                                    <i class="fa fa-calendar"></i>
                                    <span class="date-range"></span><i class="fa fa-caret-down"></i>
                                </div>
                            </li>
                        </ol>
                    </div>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <!-- end PAGE TITLE AREA -->

        </div>

        <!-- end PAGE TITLE ROW -->

        <!-- /.row -->

        <div class="row">
            <!-- Validation Examples -->
            <div class="col-lg-12">
                <div class="portlet portlet-default">
                    <div class="portlet-heading">
                        <div class="portlet-title">
                            <h4>Semestres</h4>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div id="Div1" class="panel-collapse collapse in">
                        <div class="portlet-body">

                            <div class="portlet-body">

                                <div class="table-responsive">
                                    <%-- <table class="table">--%>
                                    <%-- </div>--%>
                                    <!-- gridview modulos -->

                                    <!-- End gridview modulos -->
                                    <%--</form>--%>
                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                        <ContentTemplate>
                                            <asp:GridView ID="gvReprobados" Width="100%" runat="server"
                                                AutoGenerateColumns="False" CellPadding="4" GridLines="Horizontal" DataKeyNames="idSemestre"
                                                BackColor="White" BorderColor="#336666"
                                                BorderStyle="Double" BorderWidth="3px" OnRowCommand="gvReprobados_RowCommand">
                                                <Columns>
                                                    <asp:BoundField DataField="semestre" HeaderText="SEMESTRE">
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="estadoSemestre" HeaderText="ESTADO" />
                                                    <asp:ButtonField Text="Bloquear/Desbloquear" CommandName="deleteRecord" ControlStyle-CssClass="btn btn-info" ButtonType="Button" HeaderText="Delete Record">
                                                        <ControlStyle CssClass="btn btn-link"></ControlStyle>
                                                    </asp:ButtonField>
                                                </Columns>
                                                <FooterStyle BackColor="White" ForeColor="#333333" />
                                                <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
                                                <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
                                                <RowStyle BackColor="White" ForeColor="#333333" />
                                                <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                                                <SortedAscendingCellStyle BackColor="#F7F7F7" />
                                                <SortedAscendingHeaderStyle BackColor="#487575" />
                                                <SortedDescendingCellStyle BackColor="#E5E5E5" />
                                                <SortedDescendingHeaderStyle BackColor="#275353" />
                                            </asp:GridView>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                    <%-- </table>--%>
                                </div>
                            </div>
                            <%--</form>--%>
                        </div>
                    </div>
                </div>
            </div>
            <!-- /.col-lg-12 -->
            <!-- End Validation Examples -->
        </div>
        <!-- /.row -->


        <%--<!--aa-->
         <div id="deleteModal" class="modal hide fade"tabindex="-1"role="dialog"aria-labelledby="delModalLabel"aria-hidden="true">
                <div class="modal-header">
                    <button type="button" class="close"data-dismiss="modal"aria-hidden="true">×</button>
                    <h3 id="delModalLabel">Delete Record</h3>
                </div>

             <asp:UpdatePanel ID="upDel" runat="server">
                 <ContentTemplate>
                      <div class="modal-body">
                            Are you sure you want to delete the record?
                            <asp:HiddenField ID="HfDeleteID" runat="server"/>
                        </div>
                      <divclass="modal-footer">
                            <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="btn btn-info" OnClick="btnDelete_Click"/>
                            <buttonclass="btn btn-info"data-dismiss="modal"aria-hidden="true">Cancel</button>
                        </div>
                 </ContentTemplate>
                 <Triggers>
                     <asp:AsyncPostBackTrigger ControlID="btnDelete" />
                 </Triggers>
             </asp:UpdatePanel>
            </div>
    
         <!--aa-->--%>
        <!--as-->
        <div class="modal modal-flex fade" id="flexModal" tabindex="-1" role="dialog" aria-labelledby="flexModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="flexModalLabel">CONFIRMACIÓN DE BLOQUEO / DESBLOQUEO</h4>
                    </div>

                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <div class="modal-body">
                                <asp:Label ID="lblMensajeDecision" runat="server"></asp:Label>
                                <asp:HiddenField ID="HfDeleteID" runat="server" />
                            </div>

                            <div class="modal-footer">
                                <button class="btn btn-green" data-dismiss="modal" aria-hidden="true">Cancelar</button>
                                <asp:Button ID="btnDelete" runat="server" Text="Confirmar" CssClass="btn btn-blue" OnClick="btnDelete_Click" />
                            </div>

                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnDelete" />
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
        </div>
        <!--as-->

    </div>
</asp:Content>
